#pragma once

#include "bdpp/core.h"

namespace bd {
// Parses 'str' for a 32-bit signed integer.  If successful, writes
// the result to *value and returns true; otherwise leaves *value
// unchanged and returns false.
bool parse_int32(const char* str, int32_t* value);

// Parses 'str' for a double.  If successful, writes the result to *value and
// returns true; otherwise leaves *value unchanged and returns false.
bool parse_double(const char* str, double* value);

// Check 'str' for a bool.
bool check_truthy(const std::string& str);
}  // namespace bd
